<?php
// +----------------------------------------------------------------------
// | COMPANY  [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2024 https://www.fastadmin.net All rights reserved.
// +----------------------------------------------------------------------
// | Author: 乘风
// +----------------------------------------------------------------------

namespace app\admin\model\company;

use think\Model;


class Share extends Model
{

    

    

    // 表名
    protected $name = 'company_share';
    
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'integer';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';
    protected $deleteTime = false;

    // 追加属性
    protected $append = [

    ];
    

    







    public function sharetype()
    {
        return $this->belongsTo('ShareType', 'share_type_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }


    public function sharecollection()
    {
        return $this->belongsTo('ShareCollection', 'share_collection_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }
}